import {abstract_point} from "./abstract-point";
import {http} from "./http";

/**
 * 刷登录积分(+5×2)
 */
export class lpoint extends abstract_point{

    /**
     *
     * @param user {user} 对象
     * @param time {Number} 执行次数
     */
    constructor(user,time=2){
        super(user,time);
    }


    async request(){
        return http.get("/pss/service/postPoint?operateType=lpoint" +
            "&userAccount=" + this.user.userAccount +
            "&domainCode=" + this.user.domainCode +
            "&ssid=" +this.user.sid +
            "&"+"timestamp=" + new Date()
        );
    }

}

